package org.example.frw.mybatisplus.enums;

import lombok.Getter;

/**
 * @author zhangtian1
 */
@Getter
public enum CustomSqlMethod {
    INSERT_IGNORE("insertIgnore", "INSERT IGNORE", "<script>\nINSERT IGNORE INTO %s %s VALUES %s\n</script>"),
    REPLACE_ONE("replaceOne", "REPLACE ONE", "<script>\nREPLACE INTO %s %s VALUES %s\n</script>");

    private final String method;
    private final String desc;
    private final String sql;

    CustomSqlMethod(String method, String desc, String sql) {
        this.method = method;
        this.desc = desc;
        this.sql = sql;
    }
}
